home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / evim.vim < prev    next >
Encoding:
Text File  |  2001-07-19  |  1.5 KB  |  59 lines

  1. " Vim script for Evim key bindings
  2. " Maintainer:    Bram Moolenaar <Bram@vim.org>
  3. " Last Change:    2001 Jul 18
  4.  
  5. " Don't use Vi-compatible mode.
  6. set nocompatible
  7.  
  8. " Use the mswin.vim script for most mappings
  9. source <sfile>:p:h/mswin.vim
  10.  
  11. " Vim is in Insert mode by default
  12. set insertmode
  13.  
  14. " Make a buffer hidden when editing another one
  15. set hidden
  16.  
  17. " Make cursor keys ignore wrapping
  18. inoremap <Down> <C-O>gj
  19. inoremap <Up> <C-O>gk
  20.  
  21. set backspace=2        " allow backspacing over everything in insert mode
  22. set autoindent        " always set autoindenting on
  23. if has("vms")
  24.   set nobackup        " do not keep a backup file, use versions instead
  25. else
  26.   set backup        " keep a backup file
  27. endif
  28. set history=50        " keep 50 lines of command line history
  29. set ruler        " show the cursor position all the time
  30. set incsearch        " do incremental searching
  31. set mouse=a        " always use the mouse
  32.  
  33. " Don't use Ex mode, use Q for formatting
  34. map Q gq
  35.  
  36. " Switch syntax highlighting on, when the terminal has colors
  37. " Highlight the last used search pattern on the next search command.
  38. if &t_Co > 2 || has("gui_running")
  39.   syntax on
  40.   set hlsearch
  41.   nohlsearch
  42. endif
  43.  
  44. " Only do this part when compiled with support for autocommands.
  45. if has("autocmd")
  46.  
  47.   " Enable file type detection.
  48.   " Use the default filetype settings, so that mail gets 'tw' set to 72,
  49.   " 'cindent' is on in C files, etc.
  50.   " Also load indent files, to automatically do language-dependent indenting.
  51.   filetype plugin indent on
  52.  
  53.   " For all text files set 'textwidth' to 78 characters.
  54.   au FileType text setlocal tw=78
  55.  
  56. endif " has("autocmd")
  57.  
  58. " vim: set sw=2 :
  59.